/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package simplemetrosystem.view.menu;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JMenuItem;
import simplemetrosystem.model.charlanguage.NameMap;
import simplemetrosystem.view.action.RedoActionListener;
import simplemetrosystem.view.MetroFrame;

/**
 * 重复按钮
 * @author Eric Qian
 */
public class EditRedoItem extends JMenuItem {

    /**
     * 初始化重复按键
     * @param frame 
     */
    public EditRedoItem(MetroFrame frame) {
        super();
        this.frame = frame;
        name = NameMap.getInstance().getName("Redo");
        this.setText(name);
        Icon icon = new ImageIcon("icon/redo.gif");
        this.setIcon(icon);
        this.addActionListener(new RedoActionListener(frame));
    }
    private MetroFrame frame;
    private String name;
}
